//
//  ViewController.m
//  PushStrimTest
//
//  Created by zhanlan_1 on 2018/2/5.
//  Copyright © 2018年 zhanlan_1. All rights reserved.
//

#import "ViewController.h"
#import "PushStrimViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    
    UIButton *backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    backBtn.backgroundColor = [UIColor redColor];
    backBtn.frame = CGRectMake(20, 20, 140, 45);
    [backBtn addTarget:self action:@selector(click:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:backBtn];
}

- (void)click:(UIButton *)btn {
    
    PushStrimViewController *pushVC = [[PushStrimViewController alloc] init];
    
    [self presentViewController:pushVC animated:YES completion:nil];
    
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    
    
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
